exec (replace the current process) external subommands instead of running them as...
authorPyry Kontio <pyry.kontio@drasa.eu>
Fri, 28 Apr 2017 05:03:06 +0000 (14:03 +0900)
committerPyry Kontio <pyry.kontio@drasa.eu>
Fri, 28 Apr 2017 05:09:27 +0000 (14:09 +0900)
src/bin/cargo.rs

index 187db436fcbc76a73b948b87b5dd509261510388..1b8c7a9c3d14d9aa13a565af49485f0d5e63f132 100644 (file)
@@ -325,7 +325,7 @@ fn execute_external_subcommand(config: &Config, cmd: &str, args: &[String]) -> C
     let err = match util::process(&command)
         .env(cargo::CARGO_ENV, cargo_exe)
         .args(&args[1..])
-        .exec() {
+        .exec_replace() {
         Ok(()) => return Ok(()),
         Err(e) => e,
     };